package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbFuelRegisterValidatorGroup.*;

import java.lang.Float;
import javax.validation.constraints.Size;
import com.cloudlead.commonData.vo.BaseDriver;
import com.cloudlead.common.lang.annotation.BelongsTos;
import com.cloudlead.common.lang.annotation.Domain;
import org.joda.time.DateTime;
import com.cloudlead.commonData.vo.BaseOilCard;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * TbFuelRegister is a Codegen vo type
 */
@Label("加油登记信息表")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseDriver", rootField="baseDriverId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseOilCard", rootField="baseOilCardId")
})
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbFuelRegister")
public class TbFuelRegister extends AbstractIdEntity<String> {

    private static final long serialVersionUID =5963300907210L;    
    @Label("账户编号")
    @Size(max=45)
    private String accountNumber;

    @Label("还卡日期")
    private DateTime backDate;

    @NotNull(groups={Create.class,Update.class})
    @Label("baseDriverId")
    private BaseDriver baseDriver;

    @NotNull(groups={Create.class,Update.class})
    @Label("baseOilCardId")
    private BaseOilCard baseOilCard;

    @Label("备注")
    @Size(max=45)
    private String commont;

    @Label("领用日期")
    private DateTime dateGet;

    @Label("驾驶员")
    @Size(max=45)
    private String driver;

    @Label("删除标记")
    @Size(max=45)
    private String flag;

    @Label("车队")
    @Size(max=45)
    private String fleet;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("车牌号")
    @Size(max=45)
    private String licence;

    @Label("燃油金额")
    private Float money;

    @Label(" 油卡编号")
    @Size(max=45)
    private String oilCardNumber;

    @Label("状态")
    @Size(max=45)
    private String status;

    @Label("经办人")
    @Size(max=45)
    private String user;

    public String getAccountNumber() {
        return accountNumber;
    }

    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    public DateTime getBackDate() {
        return backDate;
    }

    public void setBackDate(DateTime backDate) {
        this.backDate = backDate;
    }

    public BaseDriver getBaseDriver() {
        return baseDriver;
    }

    public void setBaseDriver(BaseDriver baseDriver) {
        this.baseDriver = baseDriver;
    }

    public BaseOilCard getBaseOilCard() {
        return baseOilCard;
    }

    public void setBaseOilCard(BaseOilCard baseOilCard) {
        this.baseOilCard = baseOilCard;
    }

    public String getCommont() {
        return commont;
    }

    public void setCommont(String commont) {
        this.commont = commont;
    }

    public DateTime getDateGet() {
        return dateGet;
    }

    public void setDateGet(DateTime dateGet) {
        this.dateGet = dateGet;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getFleet() {
        return fleet;
    }

    public void setFleet(String fleet) {
        this.fleet = fleet;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLicence() {
        return licence;
    }

    public void setLicence(String licence) {
        this.licence = licence;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    public String getOilCardNumber() {
        return oilCardNumber;
    }

    public void setOilCardNumber(String oilCardNumber) {
        this.oilCardNumber = oilCardNumber;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String toString() {
         return String.format("TbFuelRegister { accountNumber : %s,backDate : %s,baseDriver : %s,baseOilCard : %s,commont : %s,dateGet : %s,driver : %s,flag : %s,fleet : %s,id : %s,licence : %s,money : %s,oilCardNumber : %s,status : %s,user : %s }",accountNumber,backDate,baseDriver,baseOilCard,commont,dateGet,driver,flag,fleet,id,licence,money,oilCardNumber,status,user);
    }

}

